<?php $this->load->view('layout/header');
$action_url = site_url() . "/admin/data/"; 
?>
<div class="seperator">
    <h3>Add</h3>
</div>

<form name="form1" method="post" action="<?= $action_url ?>insert_category">
    <p class="formTitle">Name: <input type="text" name="categoryname">
    Data: <input type="text" name="categorydata"></p>
    <p class="formTitle">Sub of: <?=$categorySelect?></p>
    <p class="formInput"><input type="submit" name="addcat" value="Add"></p>
</form>

<div class="seperator">
    <h3>Multi Add</h3>
    <p>Add comma seperated items</p>
</div>

<form name="form1" method="post" action="<?= $action_url ?>multi_insert">
    <p class="formTitle">Name: <input type="text" name="categoryname"></p>
    <p class="formTitle">Sub of: <?=$categorySelect?></p>
    <p class="formInput"><input type="submit" name="addcat" value="Multi Add"></p>
</form>

<div class="seperator">
    <h3>Move</h3>
</div>

<form name="form2" method="post" action="<?= $action_url ?>move_category">
    <p class="formTitle">Move This: <?=$moveCategorySourceSelect?></p>
    <p class="formTitle">
    <input type="radio" name="move_mode" value="firstchild">As first child of<br /> 
    <input type="radio" name="move_mode" value="lastchild">As last child of<br />
    <input type="radio" name="move_mode" value="prevsibling">As previous sibling of<br />
    <input type="radio" name="move_mode" value="nextsibling">As next sibling of
    </p>
    <p class="formTitle">To Target: <?=$moveCategoryTargetSelect?></p>
    <p class="formInput"><input type="submit" name="domove" value="Move"></p>
</form>

<div class="seperator">
    <h3>Delete</h3>
</div>
<p>Delete an item and all of its children</p>

<form name="form3" method="post" action="<?= $action_url ?>delete_category">
    <p class="formTitle">Select item to delete: <?=$deleteSelect?></p>
    <p class="formInput"><input type="submit" name="delete" value="Remove"></p>
</form>

<?php $this->load->view('layout/footer');?>
